﻿import flash.display.BitmapData;
import flash.geom.Matrix;
/**
 * ...
 * @author	Kliment
 * @version	1.0.0
 */
class kliment.geom.draw.FillBitmapStyle {
	public var bmp:BitmapData; 
	public var matrix:Matrix; 
	public var repeat:Boolean; 
	public var smoothing:Boolean; 
	
	public function FillBitmapStyle(bmp:BitmapData, matrix:Matrix, repeat:Boolean, smoothing:Boolean) {
		this.bmp = (bmp)?bmp:new BitmapData(10, 10, true, 0);
		this.matrix = matrix;
		this.repeat = repeat;
		this.smoothing = smoothing;
	}
	
	public function clone(totalClone:Boolean):FillBitmapStyle {
		if (totalClone == true)
			return new FillBitmapStyle(bmp.clone(), matrix.clone(), repeat, smoothing);
		else 
			return new FillBitmapStyle(bmp, matrix, repeat, smoothing);
	}
}